﻿using System.Collections.Generic;
namespace Hippo.Core.Data
{
    public interface IRepository
    {        
        void Create<T>(T entity);
        void Update<T>(T entity);
        void Delete<T>(T entity);

        T GetById<T>(object id);

        IList<T> FindBySpecification<T>(ISpecification<T> specification);
        T FindFirst<T>(ISpecification<T> specification);        
    }
}
